// 全局样式
html,
body {
    margin: 0px;
    padding: 0px;
}

* {
    box-sizing: border-box;
    user-select: none;
    -webkit-user-drag: none;
}

.flex {
    display: flex;
    flex-shrink: 0;
}

.justify-center {
    justify-content: center;
}

.items-center {
    align-items: center;
}

.flex-1 {
    flex: 1
}

.flex-col {
    flex-direction: column;
}

svg {
    fill: currentColor;
}

a {
    text-decoration: none;
}

a:focus {
    outline: none;
}

.textarea {
    width: 90%;
    height: 100%;
    min-height: 100px;
}

.upload-img-btn {
    position: absolute;
    width: 80%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    flex-direction: column;
    .upload-view {
        position: relative;

        input {
            cursor: pointer;
            position: absolute;
            opacity: 0;
            width: 100%;
            height: 100%;
        }

        &:hover {
            opacity: 1;
        }

        transition: opacity 0.3s;
        opacity: 0.9;
        cursor: pointer;
        border-radius: 4px;
        width: 100px;
        height: 40px;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 14px;
        color: #ffffff;
        background: #CD3755;
        
    }
    .ts{
        margin-top: 10px;
        font-size: 14px;
        font-weight: bold;
        color: #000;
    }
}
.edit-view {
    position: fixed;
    right: 30px !important;;
    top:  100px !important;;
    display: flex;
    z-index: 1999;
    padding: 4px !important;;
    background: rgba(0, 0, 0, 0.4) !important;
    color: #ffffff;
    padding: 10px !important;;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    .btn {
      &.yu {
        background-color: #2080f0;
      }
      &.save {
        background-color: #18a058;
      }
      &:hover {
        opacity: 1;
      }
      cursor: pointer !important;
      background-color: #000 ;
      padding: 10px 30px !important;
      margin: 0 5px;
      opacity: 0.8;
    }
  }

  .btn-view {
    position: absolute;
    .btn {
      position: relative;
      input {
        cursor: pointer;
        position: absolute;
        opacity: 0;
        width: 100%;
        height: 100%;
      }
      &:hover {
        opacity: 1;
      }
      transition: opacity 0.3s;
      opacity: 0.8;
      cursor: pointer;
      border-radius: 4px;
      min-width: 200px;
      padding: 0 20px;
      height: 40px;
      display: flex;
      justify-content: center;
      align-items: center;
      font-size: 14px;
      color: #ffffff;
      background: #51a11f;
    }
  }
  .ellipsis-text {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* 显示行数 */
    -webkit-box-orient: vertical;
    line-height: 1.5; /* 模拟 1.5 行高 */
  }

  .home-video {
    .icon {
      &.a {
        left: 62px;
      }
      &.b {
        left: 150px;
      }
      position: absolute;
      bottom: 32px;
      width: 48px;
      height: 48px;
    }
  }
  .viewer-backdrop{
    background: #ffffff!important;
  }
  .viewer-navbar{
    display: flex;
    justify-content: center;
    .viewer-list{
      transform: translateX(0)!important;;
    }
  }